/**
 * Copyright (c) 2015 Baidu. All Rights Reserved.
 *
 * @file Http响应Model
 * @author yuanguozheng
 */
var objCopier = require('../utils/objCopier');

/**
 * 默认响应对象
 *
 * @type {{code: number, headers: {}, body: string}}
 */
var raw = {
    code: 200,  // 响应码
    headers: {},  // 响应头
    body: ''  // 响应体
};

/**
 * 创建响应对象
 *
 * @return {*} 响应对象
 * @constructor
 */
function ResponseModel() {
    return objCopier(raw);
}

module.exports = ResponseModel;